Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Subquery Unnesting: Exists + In Support#259

Merged
jurplel merged 57 commits intomainfrom
bowad/unnest-exists
Dec 10, 2024
Merged

Subquery Unnesting: Exists + In Support#259
jurplel merged 57 commits intomainfrom
bowad/unnest-exists

Conversation

@jurplel
Copy link
Member

@jurplel jurplel commented Dec 7, 2024

  • Support uncorrelated/correlated IN (ANY) and EXISTS clauses (This should effectively make subquery unnesting feature complete!)
  • TPC-H Q4, Q16, Q20, and Q22 working
    • The remaining queries mostly seem to have plans that are too bad (Q18 has some other issue, fix in the pipeline but it still seems like the plan is too slow).

Comment on lines +70 to +71
// TODO: Check that field is of bool type
0.5 // TODO: placeholder---how can we get the selectivity?
Copy link
Member Author

@jurplel jurplel Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be addressed

Comment on lines +111 to +112
// TODO: Check that field is of bool type
0.5 // TODO: placeholder---how can we get the selectivity?
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

);
join_filter_selectivity
}
// TODO: Does this make sense?
Copy link
Member Author

@jurplel jurplel Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@jurplel jurplel marked this pull request as ready for review December 9, 2024 05:08
@jurplel jurplel requested review from skyzh and yliang412 December 9, 2024 05:27
Copy link
Member

@skyzh skyzh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you also please enable the newly-supported TPC-H queries in sqlplannertest? thanks :)

@jurplel jurplel enabled auto-merge (squash) December 10, 2024 22:09
@jurplel jurplel merged commit 271d288 into main Dec 10, 2024
@jurplel jurplel deleted the bowad/unnest-exists branch December 10, 2024 22:23
yliang412 referenced this pull request Dec 10, 2024
https://github.com/cmu-db/optd/pull/259 added new yml test cases instead
of renaming the `.disabled` ones, removing them now.

Signed-off-by: Yuchen Liang <yuchenl3@andrew.cmu.edu>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants